#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  long int i;
	
  if((arq = fopen("arq702.txt","a")) != NULL) {		
	printf("Escreva uma posicao:\n");
	scanf("%ld", &i);
	fseek(arq,i,SEEK_SET); 
	printf("%ld\n",ftell(arq)); 
	rewind(arq);
	printf("%ld\n",ftell(arq));
	fclose(arq);
	}			
}
